package com.jxtc.enterprise.employee.vo;

import cn.hutool.json.JSONArray;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Schema(description = "每一项订单信息中的菜品信息")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class WxOrderItemVO {
    // 店铺名称
    @Schema(description = "店铺名称")
    private String shoreName;

    // 餐品名称
    @Schema(description = "餐品名称")
    private String foodName;

    // 餐品在小票上的打印名称
    @Schema(description = "餐品在小票上的打印名称")
    private String foodPrintName;

    // 餐品价格
    @Schema(description = "餐品价格")
    private Integer foodPrice;

    @Schema(description = "餐品的显示价格")
    private Integer showPrice;

    // 餐品数量
    @Schema(description = "餐品数量")
    private Integer foodNum;

    // 餐品图片
    @Schema(description = "餐品图片")
    private String foodImg;

    // 餐品规格
    @Schema(description = "餐品规格")
    private JSONArray foodSpecification;

    // 备注
    @Schema(description = "备注")
    private String note;

    public Double getFoodPrice() {
        return foodPrice * 1.0 / 100;
    }

    public Double getShowPrice() {
        return showPrice * 1.0 / 100;
    }
}
